﻿
/**********************  此代码是由代码生成器生成，生成时间： 2012/10/17 16:40:00  ************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Data;

namespace CRM.Entity
{
    [DataContract]
    public partial class Sys_UserInfo:BaseEntity
    {
        public Sys_UserInfo()
        {

        }

        public Sys_UserInfo(DataRow row)
        {
            if (row["user_id"] != null && row["user_id"].ToString() != "")
            {
                this.user_id =Convert.ToInt64(row["user_id"]);
            } 
            if (row["user_name"] != null && row["user_name"].ToString() != "")
            {
                this.user_name =Convert.ToString(row["user_name"]);
            } 
            if (row["password"] != null && row["password"].ToString() != "")
            {
                this.password =Convert.ToString(row["password"]);
            } 
            if (row["user_type"] != null && row["user_type"].ToString() != "")
            {
                this.user_type =Convert.ToInt32(row["user_type"]);
            } 
            if (row["disable"] != null && row["disable"].ToString() != "")
            {
                this.disable =Convert.ToBoolean(row["disable"]);
            } 
            if (row["create_time"] != null && row["create_time"].ToString() != "")
            {
                this.create_time =Convert.ToDateTime(row["create_time"]);
            } 
            if (row["last_login_time"] != null && row["last_login_time"].ToString() != "")
            {
                this.last_login_time =Convert.ToDateTime(row["last_login_time"]);
            } 
        }

       /**********************************  User_id ************************************************/
       Int64 _user_id;
       
        [DataMember]
        public Int64 user_id
        {
          get { return _user_id; }
          set {
                _user_id = value;
                OnPropertyChanged("user_id");
            }
        }
       /**********************************  User_name ************************************************/
       String _user_name;
       
        [DataMember]
        public String user_name
        {
          get { return _user_name; }
          set {
                _user_name = value;
                OnPropertyChanged("user_name");
            }
        }
       /**********************************  Password ************************************************/
       String _password;
       
        [DataMember]
        public String password
        {
          get { return _password; }
          set {
                _password = value;
                OnPropertyChanged("password");
            }
        }
       /**********************************  User_type ************************************************/
       Int32 _user_type;
       
        [DataMember]
        public Int32 user_type
        {
          get { return _user_type; }
          set {
                _user_type = value;
                OnPropertyChanged("user_type");
            }
        }
       /**********************************  Disable ************************************************/
       Boolean _disable;
       
        [DataMember]
        public Boolean disable
        {
          get { return _disable; }
          set {
                _disable = value;
                OnPropertyChanged("disable");
            }
        }
       /**********************************  Create_time ************************************************/
       DateTime _create_time;
       
        [DataMember]
        public DateTime create_time
        {
          get { return _create_time; }
          set {
                _create_time = value;
                OnPropertyChanged("create_time");
            }
        }
       /**********************************  Last_login_time ************************************************/
       DateTime _last_login_time;
       
        [DataMember]
        public DateTime last_login_time
        {
          get { return _last_login_time; }
          set {
                _last_login_time = value;
                OnPropertyChanged("last_login_time");
            }
        }
    }
}
